Lua/Events/Client/LocalPlayerChat
From JC2-MP Documentation
< Lua
| Name | LocalPlayerChat |
|---|---|
| Arguments (in table) | string text |
| Return option | Return false to block the message |
Description
Fired when you send a chat message.
If false is returned, the message is not sent to the server.
Examples
Foo = function(args) if args.text == "Block this message!" then return false else return true end end Events:Subscribe("LocalPlayerChat", Foo)